//
// Created by 11510 on 2024/7/4.
//

#include "Producer.h"
#include "TaskQueue.h"
using std::cout;
using std::endl;
void Producer::produce(TaskQueue &taskQueue) {
    ::srand(::clock());

    int cnt = 15;
    while(cnt--){
        int tmp = ::rand() % 10;
        taskQueue.push(tmp);
        printf("produce:%d\n", tmp);
    }

}


